package com.yangcangclub.commons.utils;

import org.apache.commons.lang.math.NumberUtils;


/**
 * NumbersUtil
 */
public class NumbersUtil extends NumberUtils {


    public static int mod(int num,int mod){
        if(num<0){
            return  1;
        }
        int data = num%mod;
        if(data==0){data=mod;}
        return data;
    }
}
